//
// Created by LiuDongPeng on 2024/1/29.
//

#ifndef FOC_LED_H
#define FOC_LED_H

#include "LedBase.h"
#include "Stm32Base.h"


class Led : public LedBase
{
public:
    Led(stm32_write_pin_t led_set_pin, bool validLevel);
    ~Led() = delete;

    void on() override;
    void off() override;
    void toggle() override;


private:
    stm32_write_pin_t m_led_set_pin_cb;

private:
    bool m_validLevel;
    bool m_lastStatus = false;
};


#endif //FOC_LED_H
